package annotation.test;

import annotation.ClassAnnotation;
import annotation.FieldAnnotation;
import annotation.MethodAnnotation;
import annotation.MethodTypeEnum;

/**
 * @Author Jun jie Yi
 * @Date 2022/3/2 15:45
 */
@ClassAnnotation(name = "personBean", version = "1.2.1")
public class Person {
    @FieldAnnotation(name = "description", value = "This is my personal annotation")
    private String description;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @MethodAnnotation(name = "sayHello111", type = MethodTypeEnum.TYPE2)
    public void sayHello() {
        System.out.println("Hello Annotation!");
    }
}
